package com.stu.Test;

import org.springframework.context.support.ClassPathXmlApplicationContext;

import com.stu.Service.UserService;

public class TestDI {

	public static void main(String[] args) {
		ClassPathXmlApplicationContext applicationContext = new ClassPathXmlApplicationContext("applicationContext.xml");
		UserService userService=(UserService)applicationContext.getBean("userService");
		userService.say();
	}

}
